package edu.hsbremen.teamscore.listeners;

import android.app.Activity;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;

public class OnModeSelectClickListener implements OnClickListener {
	
	private int _requestCode;
	private Activity _activity;
	private Class<?> _class;
	
	public OnModeSelectClickListener(int requestCode, Activity a, Class<?> cls) {
		_requestCode = requestCode;
		_activity = a;
		_class = cls;
	}

	@Override
	public void onClick(View v) {
		Intent i = new Intent(v.getContext(), _class);
		_activity.startActivity(i);
		
	}

}
